package com.lt.crm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.lt.crm.pojo.SysRight;
import com.lt.crm.pojo.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_role】的数据库操作Service
* @createDate 2024-06-18 16:58:48
*/
public interface SysRoleService extends IService<SysRole> {

    List<SysRight> findRightsByRole(SysRole role);


    Page<SysRole> findRole(String roleName, Page<SysRole> page);

    public void deleteRole(Long id) throws JsonProcessingException;
    public void restoreRole(Long id) throws JsonProcessingException;
    public void deleteRoleCache(Long id) throws JsonProcessingException;
}
